<template>
  <el-pagination
    class="mt15"
    background
    @size-change="props.pagination.onPageSizeChange"
    @current-change="props.pagination.onCurrentPageChange"
    :pager-count="props.pagination.pageCount"
    :page-sizes="props.pagination.pageSizes"
    :page-size="props.pagination.pageSize"
    :current-page="props.pagination.page"
    :layout="props.pagination.layout"
    :total="props.total"
  >
  </el-pagination>
</template>

<script setup lang="ts" name="CommonPagination">
import { PaginationProps } from '/@/hooks/use-table';
const props = defineProps<{ pagination: PaginationProps, total: number }>()
</script>
